@import "../commonFunc";

.pdf_viewer_module {
    user-select: auto !important;
    height: 100%;

    .viewer_head {
        @include position;
        height: px2rem(70);
        @include trbl(0, px2rem(273), '', px2rem(387));
        @include displayFlex;

        h3 {
            @include fontSize(px2rem(18));
            @include color(white);
        }

        .viewer_operate_group {
            @include position;
            @include trbl(0, 0, 0, '');
            @include displayFlex;

            .page_tab {
                @include displayFlex;

                button {
                    @include color(white);
                    @include bgColor(transparent);
                    padding: 0;
                    outline: none;
                    border: none;
                    min-width: px2rem(55);
                    @include position(relative);
                    @include displayFlex;
                    justify-content: flex-start;
                    @include fontSize(px2rem(16));

                    &[disabled] {
                        @include color(rgba(255, 255, 255, .7));
                    }

                    .anticon {
                        @include widthHeight(px2rem(17));
                        @include bgColor(rgba(255, 255, 255, .2));
                        @include displayFlex;

                        &:hover {
                            @include color($defaultActiveColor)
                        }
                    }

                    &:last-of-type {
                        .anticon {
                            @include position;
                            @include trbl(px2rem(7), px2rem(17), '', '')
                        }

                        span {
                            margin: 0;
                        }
                    }
                }

                .ant-input {
                    width: px2rem(80);
                    @include bgColor(transparent);
                    border-color: rgba(255, 255, 255, .2) !important;
                    margin: 0 px2rem(5);
                    text-align: center;
                    @include color(white);
                    @include fontSize;
                }
            }

            .page_zoom {
                .ant-input-number {
                    margin-left: px2rem(32);
                    width: px2rem(80);
                    @include bgColor(transparent);
                    border-color: rgba(255, 255, 255, .2) !important;
                    text-align: center;
                    @include color(white);
                    @include fontSize;

                    .ant-input-number-handler-wrap {
                        @include bgColor(rgba(255, 255, 255, .2));
                        opacity: 1;

                        span {
                            @include color(white);

                            &[avtive] {
                                @include bgColor(rgba(255, 255, 255, .2));
                            }
                        }
                    }
                }
            }
        }
    }

    .main_container {
        overflow: auto;
    }

    .common_container {
        padding-bottom: 0;
        height: auto;
        overflow: initial;
        //min-height: 100%;
    }

    .react-pdf__Document {
        @include widthHeight(100%);
        //max-width: px2rem(1256);
        margin: 0 auto;
        overflow: auto;
        @include scrollBar(0);
        //@include bgColor(rgba(255, 255, 255, .6));

        .react-pdf__Page {
            @include displayFlex;

            .react-pdf__Page__canvas {
                margin: 0 auto;
            }
        }
    }
}


@media (min-width: 1529px) {
    .viewer_module {
        .head_container {
            //@include position(fixed);
        }

        .main_container {
        }
    }
}